using Microsoft.Phone.Controls.Maps.Core;
using System;
using System.Windows.Media;
using System.Windows.Shapes;
namespace Microsoft.Phone.Controls.Maps
{
	public class MapPolyline : MapShapeBase
	{
		protected override PointCollection ProjectedPoints
		{
			get
			{
				return ((Polyline)base.EmbeddedShape).get_Points();
			}
			set
			{
				if (base.EmbeddedShape != null)
				{
					((Polyline)base.EmbeddedShape).set_Points(value);
				}
			}
		}
		public FillRule FillRule
		{
			get
			{
				return ((Polyline)base.EmbeddedShape).get_FillRule();
			}
			set
			{
				if (base.EmbeddedShape != null)
				{
					((Polyline)base.EmbeddedShape).set_FillRule(value);
				}
			}
		}
		public MapPolyline()
		{
			base.set_DefaultStyleKey(typeof(MapPolyline));
			base.EmbeddedShape = new Polyline();
		}
		protected override void SetEmbeddedShape(Shape newShape)
		{
			if (base.EmbeddedShape != null)
			{
				((Polyline)newShape).set_FillRule(((Polyline)base.EmbeddedShape).get_FillRule());
			}
			base.SetEmbeddedShape(newShape);
		}
	}
}
